package com.hzit.loan.pay.mapper;

import com.hzit.loan.pay.model.MchPayWay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MchPayWayMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(MchPayWay record);

    int insertSelective(MchPayWay record);

    MchPayWay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MchPayWay record);

    int updateByPrimaryKey(MchPayWay record);


    /**
     * 查询商户支付方式
     * @param mchId
     * @param payChannel
     * @param payWay
     * @return
     */
    MchPayWay queryByMchIdAndPayChannel(@Param("mchId")String mchId,
                                        @Param("payChannel")String payChannel,
                                        @Param("payWay")String payWay);
}